<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>账号注册</title>
<c:import url="/WEB-INF/jsp/head.jsp" />
<script type="text/javascript" src="static/js/register.js"></script>
<script>
	// 防止当前没处于顶层框架
	if (window.top != window) {
		window.top.location.href = document.location.href;
	}
</script>
</head>
<body class="bg-gray">
	<div class="container">
		<div id="login" class="col-md-6 col-md-offset-3 text-center">
			<form class="text-left required-validate" action="system/register"
				method="post">
				<div class="form-group">
					<label for="account"><i class="text-danger">*</i> 账号名称</label> <input
						type="text" class="form-control" name="account" placeholder="账号名称">
				</div>
				<div class="form-group">
					<label for="password">账号密码</label> <input type="password"
						class="form-control" name="password" placeholder="账号密码">
				</div>
				<div class="form-group">
					<label for="teacherName"><i class="text-danger">*</i> 教师名称</label>
					<input type="text" class="form-control" name="name"
						placeholder="教师名称">
				</div>
				<div class="form-group">
					<label for="tel"><i class="text-danger">*</i> 教师类型</label> <select
						class="form-control" name="type.value">
						<c:forEach items="${types }" var="type">
							<option value="${type.value }">${type.name }</option>
						</c:forEach>
					</select>
				</div>
				<div class="form-group">
					<label for="tel">联系电话</label> <input type="text"
						class="form-control" name="tel" placeholder="联系电话">
				</div>
				<div class="form-group">
					<label for="email">电子邮箱</label> <input type="text"
						class="form-control" name="email" placeholder="电子邮箱">
				</div>
				<div class="form-group">
					<label for="remarks">备注</label>
					<textarea class="form-control" name="remarks" placeholder="备注"></textarea>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-primary">注册</button>
					<a href="javascript:history.back(-1);" class="btn btn-default">返回</a>
				</div>
			</form>
		</div>
	</div>
</body>
</html>